﻿@model AssemblyDocumentation

@using ApiDoc


@{
    ViewBag.Title = Model.Name;
}

<h1>@Model.Name</h1>

@if (Model.Namespaces.Any()) {
    <div class="namespaces">
        <h2>Namespaces</h2>
        <table class="members">
            <thead>
                <tr>
                    <th>
                    </th>
                    <th>
                        Name
                    </th>
                    @*<th>
                        Description
                    </th>*@
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model.Namespaces) {
                    <tr>
                        <td>
                        </td>
                        <td>
                            @Html.ApiDocumentationLink(item)
                        </td>
                        @*<td>
                            @Model.Description
                        </td>*@
                    </tr>
                }
            </tbody>
        </table>
    </div>
}

@if (Model.Classes.Any()) {
    <div class="classes">
        <h2>Classes</h2>
        <table class="members">
            <thead>
                <tr>
                    <th>
                    </th>
                    <th>
                        Name
                    </th>
                    <th>
                        Description
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model.Classes) {
                    <tr>
                        <td>
                            @(item.Modifiers == "public"? String.Empty: item.Modifiers)
                        </td>
                        <td>
                            @Html.ApiDocumentationLink(item)
                        </td>
                        <td>
                            @item.Description.ToPlainText()
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
}

@if (Model.Interfaces.Any()) {
    <div class="interfaces">
        <h2>Interfaces</h2>
        <table class="members">
            <thead>
                <tr>
                    <th>
                    </th>
                    <th>
                        Name
                    </th>
                    <th>
                        Description
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model.Interfaces) {
                    <tr>
                        <td>
                            @(item.Modifiers == "public"? String.Empty: item.Modifiers)
                        </td>
                        <td>
                            @Html.ApiDocumentationLink(item)
                        </td>
                        <td>
                            @item.Description
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
}

@if (Model.Enums.Any()) {
    <div class="enumerators">
        <h2>Enumerators</h2>
        <table class="members">
            <thead>
                <tr>
                    <th>
                    </th>
                    <th>
                        Name
                    </th>
                    <th>
                        Description
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in Model.Enums) {
                    <tr>
                        <td>
                            @(item.Modifiers == "public"? String.Empty: item.Modifiers)
                        </td>
                        <td>
                            @Html.ApiDocumentationLink(item)
                        </td>
                        <td>
                            @item.Description
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
}


